package cn.com.gainfo.recks.dao.systemSet;

import java.util.List;

import javax.sql.DataSource;

import cn.yzyue.base.dao.AbstractDAO;
import cn.yzyue.base.tools.db.DB;
import cn.yzyue.base.vo.VO;

public class AuthDAO extends AbstractDAO{

	
	public List getFuncData(DataSource dataSource){
		String sql = "select id , name from function where 1=1   ";
		return DB.search(dataSource, sql);
	}
	
	
	
	
	public List findIds(DataSource dataSource){
		String sql = "select id , name from auth where 1=1";
		return DB.search(dataSource, sql);
	}
	
	@Override
	public boolean add(DataSource dataSource, VO vo) {
		// TODO Auto-generated method stub
		return super.add(dataSource, vo);
	}

	@Override
	public boolean batchDel(DataSource dataSource, VO vo, List data) {
		// TODO Auto-generated method stub
		return super.batchDel(dataSource, vo, data);
	}

	@Override
	public boolean del(DataSource dataSource, VO vo, String[] ids) {
		// TODO Auto-generated method stub
		return super.del(dataSource, vo, ids);
	}

	@Override
	public List find(DataSource dataSource, VO vo, int page) {
		// TODO Auto-generated method stub
		return super.find(dataSource, vo, page);
	}
	
	@Override
	public List find(DataSource dataSource, VO vo) {
		// TODO Auto-generated method stub
		return super.find(dataSource, vo);
	}

	@Override
	public VO findByIds(DataSource dataSource, VO vo, String[] ids) {
		// TODO Auto-generated method stub
		return super.findByIds(dataSource, vo, ids);
	}
	
	@Override
	public boolean mod(DataSource dataSource, VO vo) {
		// TODO Auto-generated method stub
		return super.mod(dataSource, vo);
	}
}
